package com.xebest.web.mapper.write;

import com.xebest.web.model.XeVenStoreInventoryDetailEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface XeVenStoreInventoryDetailWriteMapper {

    /**
     * 插入仓库一览的入库批次
     *
     * @author 杜春静
     */
    int insertStoreInvDetail(XeVenStoreInventoryDetailEntity record) throws Exception;

    /**
     * 批量添加仓库一览的入库批次
     *
     * @author 杜春静
     */
    int batchInsertStoreInvDetail(List<XeVenStoreInventoryDetailEntity> list);

    /**
     * 更新仓库一览的入库库存
     *
     * @author 杜春静
     */
    int updateStoreInvDetailByMap(@Param("record") XeVenStoreInventoryDetailEntity record) throws Exception;

    /**
     * 根据条件查询仓库一览的入库批次
     *
     * @author 杜春静
     */
    List<XeVenStoreInventoryDetailEntity> getInvDetailByMap(Map<String, Object> params);

}